package com.hdax.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hdax.entity.Permission;
import com.hdax.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Repository

public interface RoleMapper extends BaseMapper<Role> {
    int deleteOneRole(Integer id);
    IPage<Role> selectPageVo(Page<Role> page, @Param("role") Role role);
    List<Role> selectRole();
    Role selectRoleById(Integer id);
    int addRole(@Param("role")Role role);
    int updateRole(@Param("role")Role role);
    Integer findRoleIdByUserName(String account);
}
